MsgN("\n----------------------------------------")
MsgN("-- MadDog's Damage Systems Loading")

//server vars
CreateConVar("maddogs_damage_system", "0")						//Add server convar to Enable or Disable
CreateConVar("MD_Health_Weight_Multiply", "5")	//How mucht o multiple the Weight to give a bigger health value
CreateConVar("MD_Debug", "0")					//turn debugging on/off
CreateConVar("MD_Ignite_time", "5")				//ignite time
CreateConVar("MD_Ignite_radius", "10")			//ignite radius
CreateConVar("MD_Max_health", "4000")			//max health
CreateConVar("MD_Blast_damage", "4")			//ignite radius
CreateConVar("MD_Blast_radius", "2")			//ignite radius

--holds the entire Resource System
MDDS = {}
MDDS.Version = "1.00"

MDDS.IsEnabled = function()
	--MD is required
	if !MD || !MD.IsEnabled() then return false end

	return (tonumber(GetConVarNumber("maddogs_damage_system")) == 1)
end

--server side calls
if (SERVER) then
	--add all files required by client
 	AddCSLuaFile("autorun/maddogs_damage_system.lua")

		--get all server side files
	for _, file in pairs(file.FindInLua("maddogs_damage_system/server/*.lua")) do
		MsgN("--\t" .. file .. " loaded.")
		include( "maddogs_damage_system/server/" .. file )
	end

	RunConsoleCommand("sv_tags", (GetConVarString("sv_tags") or "")..",maddogs_damage_system")
end

--get all client side files
for _, file in pairs(file.FindInLua("maddogs_damage_system/client/*.lua")) do
	MsgN("--\t" .. file .. " loaded.")
	IncludeClientFile( "maddogs_damage_system/client/" .. file )
end

MsgN("----------------------------------------\n")